# -*- coding:utf-8 -*-
from flask import Flask
def chuli(text):
    text = str(text)
    fuhao = ['+', '-', '*', '%',]
    for i in fuhao:
        if i in text:
            text = text.split(i)
            fuhao_biaozhi = i
    global yunsuan
    yunsuan = eval('{}{}{}'.format(text[0],fuhao_biaozhi,text[1]))
    return str(yunsuan)
app = Flask(__name__)
@app.route('/')
def hello_word():
    return 'Hello Word'
@app.route('/<id>')
def print_id(id):
    return chuli(id)
if __name__ == '__main__':
    app.run(debug=True)